<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>喇叭花</title>
</head>
<body>
    <script>
        function jc(n) {
            if (n === 0) {
                return 0
            } else {
                var total = 1;
                for (var i = 1 ; i <= n ; i++) {
                total*=i
                }
                return total;
            }
        } 


        for (var i = 100 ; i <= 999; i++) {
            var ge = i % 10, 
            shi = parseInt((i % 100) / 10), 
            bai = parseInt(i / 100);
            if (jc(ge) + jc(shi) + jc(bai) === i) {
                console.log(i)
            }
        }
            
        
        
        
    </script>
</body>
</html>